﻿<%@ Page Title="Subtitles" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Subtitles.aspx.cs" Inherits="Subtitles" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:UpdatePanel ID="SubtitleSearchUpdatePanel" runat="server" UpdateMode="Always">
        <Triggers>
            <asp:PostBackTrigger ControlID="SubUpload" />
        </Triggers>
        <ContentTemplate>
            <h2>
                Feliratok</h2>
            <fieldset id="SubtitleUploadPanel" runat="server">
                <legend>Felirat feltöltése</legend>
                <asp:Table ID="SearchFormTable" runat="server">
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:DropDownList ID="UpLoadDropDownList1" runat="server" Width="200px" AutoPostBack="true"
                                OnSelectedIndexChanged="SeasonChooseSeries_SelectedIndexChanged" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:DropDownList ID="UpLoadDropDownList2" runat="server" Width="200px" AutoPostBack="true"
                                OnSelectedIndexChanged="EpisodeChooseSeason_SelectedIndexChanged" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:DropDownList ID="UpLoadDropDownList3" runat="server" Width="200px" AutoPostBack="false" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:DropDownList ID="LanguageDropDownList" runat="server" Width="200px" AutoPostBack="true" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:FileUpload ID="FileUpLoad1" runat="server" autopostback="false" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Button ID="SubUpload" runat="server" Text="Feltöltés" OnClick="SubUpload_Click" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label runat="server" ID="UploadLabel" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </fieldset>
            <fieldset id="SubtitleSeachPanel">
                <legend>Felirat keresése</legend>
                <asp:Table ID="Table1" runat="server">
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:TextBox ID="SearchPrefix" runat="server" Width="200px" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:DropDownList ID="SeriesDropDown" runat="server" Width="200px" AutoPostBack="true"
                                OnSelectedIndexChanged="SeasonChooseSeries_SelectedIndexChanged2">
                            </asp:DropDownList>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:DropDownList ID="SeasonDropDown" runat="server" Width="200px" AutoPostBack="true"
                                OnSelectedIndexChanged="EpisodeChooseSeason_SelectedIndexChanged2">
                            </asp:DropDownList>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:DropDownList ID="EpisodeDropDown" runat="server" Width="200px" AutoPostBack="false">
                            </asp:DropDownList>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Button ID="SearchSubtitle" runat="server" Text="Keresés" OnClick="SearchSubtitle_Click" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label runat="server" ID="StatusLabel" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </fieldset>
            <fieldset id="SubtitleResultPanel">
                <asp:Table ID="Table2" runat="server">
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:GridView ID="subtitlesGridView" runat="server" AllowPaging="false" AutoGenerateColumns="false"
                                PageSize="10" OnPageIndexChanging="subtitlesGridView_PageIndexChanging" GridLines="None"
                                CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt">
                                <Columns>
                                    <asp:BoundField HeaderText="Sorozat címe" DataField="series"></asp:BoundField>
                                    <asp:BoundField HeaderText="Évad" DataField="season"></asp:BoundField>
                                    <asp:BoundField HeaderText="Epizód" DataField="episode"></asp:BoundField>
                                    <asp:BoundField HeaderText="Nyelv" DataField="language"></asp:BoundField>
                                    <asp:BoundField HeaderText="Dátum" DataField="lastModifiedDate"></asp:BoundField>
                                    <asp:HyperLinkField HeaderText="Letöltés" Text="letöltés" DataNavigateUrlFields="subUrl">
                                    </asp:HyperLinkField>
                                </Columns>
                            </asp:GridView>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </fieldset>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
